// 所有的消息
const ModuleMessage = {
 state: {
	messageList:[]
 },
 mutations: {
   setMessageList(state,messageList){
    state.messageList = messageList
	// console.log('setMessageList',messageList);
   }, 
   addNewMessage(state,message){
    state.messageList.unshift(message)
	state.hasNewMessage = true;
	uni.showTabBarRedDot({
		index:2
	})
	// console.log('addNewMessage',message);
   }, 
 },
};

export default ModuleMessage;